/**
 * Copyright &copy; 2012-2015 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.cms.utils;

import java.util.List;

import com.google.common.collect.Lists;
import com.soccer.cms.common.utils.SpringContextHolder;

import com.soccer.cms.modules.cms.entity.Imageinfo;
import com.soccer.cms.modules.cms.dao.ImageinfoDao;

/**
 * 图片信息Utils
 * @author zouqh
 * @version 2015-05-29
 */
public class ImageinfoUtils {

	private static ImageinfoDao imageinfoDao = SpringContextHolder.getBean(ImageinfoDao.class);
	
	public static Imageinfo getImageinfo(String id) {
		return imageinfoDao.get(id);
	}
	
	public static List<Imageinfo> getImageinfoList() {
		List<Imageinfo> imageinfos = null;
		Imageinfo imageinfo = new Imageinfo();
		imageinfos = imageinfoDao.findList(imageinfo);
		if(imageinfos == null){
			imageinfos = Lists.newArrayList();
		}
		return imageinfos;
	}
	
	
}